package com.wlyuan.open.exception;

import com.wlyuan.utils.ResultError;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * @author lijing
 */
@RequiredArgsConstructor
@Getter
public class CustomError implements ResultError {
    private static final long serialVersionUID = 3634003341191292618L;
    private final int code;
    private final String message;

    public static final CustomError NOT_LOGIN = new CustomError(80000, "未登录");
    public static final CustomError APP_ID_NOT_FOUND = new CustomError(80001, "应用不存在");
    public static final CustomError APP_IS_DISABLE = new CustomError(80002, "应用不是启用状态");
    public static final CustomError UNAUTHORIZED = new CustomError(80003, "接口未授权");
    public static final CustomError BAD_METHOD = new CustomError(80004, "请求方式错误");
    public static final CustomError TENANT_ERROR = new CustomError(80005, "所属租户错误");
    public static final CustomError WLY_ACCOUNT_ERROR = new CustomError(80006, "企业版账号被禁用");
}